import request from '@/utils/request'
import qs from 'qs'

//获取值渲染表格
export function getMsbd(params) {
  return request({
    url: 'msbd/list',
    method: 'get',
    params,
    baseURL:'http://localhost:2345/'
  })
}

//删除
export function deletelist(id) {
  return request({
    url: 'msbd/delList',
    method: 'get',
    params : id,
    baseURL:'http://localhost:2345/'
  })
}

//新增
export function addedlists(form) {
  return request({
    url: 'msbd/addList',
    method: 'post',
    data:qs.stringify(form),
    baseURL:'http://localhost:2345/'
  })
}

//修改
export function modificationsapi(form) {
  return request({
    url: 'msbd/updateList',
    method: 'post',
    data:qs.stringify(form),
    baseURL:'http://localhost:2345/'
  })
}
